import axios from '~/axios'

// 添加补贴申请支付通知
export function addSubsidyApplicationPayNoticeApi(data) {
    return axios.post('/basic/lindi/subsidyApplicationPayNotice/addSubsidyApplicationPayNotice', data)
}

// 删除补贴申请支付通知
export function deleteSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeIdApi(subsidyApplicationPayNoticeId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/subsidyApplicationPayNotice/deleteSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeId',
        params: {
            subsidyApplicationPayNoticeId: subsidyApplicationPayNoticeId
        }
    })
}

// 修改补贴申请支付通知
export function updateSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeIdApi(data) {
    return axios.put('/basic/lindi/subsidyApplicationPayNotice/updateSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeId', data)
}

// 分页查询补贴申请支付通知列表
export function getPageSubsidyApplicationPayNoticeListApi(data) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/subsidyApplicationPayNotice/getPageSubsidyApplicationPayNoticeList',
        data: data
    })
}

// 根据ID查询补贴申请支付通知详情
export function getSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeIdApi(subsidyApplicationPayNoticeId) {
    return axios.get(`/basic/lindi/subsidyApplicationPayNotice/getSubsidyApplicationPayNoticeBySubsidyApplicationPayNoticeId/${subsidyApplicationPayNoticeId}`)
}

// 根据补贴申请ID查询支付通知列表
export function getSubsidyApplicationPayNoticeListBySubsidyApplicationIdApi(subsidyApplicationId) {
    return axios.get(`/basic/lindi/subsidyApplicationPayNotice/getSubsidyApplicationPayNoticeListBySubsidyApplicationId/${subsidyApplicationId}`)
}